package com.baizhi.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
public class VideoDetailVO {

    /**
     * 视频id
     */
    private Integer id;

    /**
     * 视频标题
     */
    private String title;

    /**
     * 视频封面
     */
    private String cover;

    /**
     * 视频链接
     */
    private String link;

    /**
     *
     */
    @JsonProperty("created_at")
    private Date createdAt;

    /**
     *
     */
    @JsonProperty("updated_at")
    private Date updateAt;

    /**
     * 视频类别
     */
    private String category;

    /**
     * 播放总数
     */
    @JsonProperty("plays_count")
    private Integer playsCount;

    /**
     * 点赞数
     */
    @JsonProperty("likes_count")
    private Integer likesCount;

    /**
     * 是否喜欢
     */
    private boolean liked;

    /**
     * 是否不喜欢
     */
    private boolean disliked;

    /**
     * 是否收藏
     */
    private boolean favorite;

    /**
     * up主信息
     */
    private User uploader;

    /**
     * 评论信息
     */
    private List<Comment> comments;

}
